package com.example.demo.entity.mybatisplus;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 自定义定时任务表
 * </p>
 *
 * @author xzw
 * @since 2021-04-28
 */
@TableName("tb_sys_custom_quartz")
public class TbSysCustomQuartz extends Model<TbSysCustomQuartz> {

    private static final long serialVersionUID = 1L;

    /**
     * 任务名称
     */
    private String job_name;
    /**
     * 任务分组
     */
    private String job_group;
    /**
     * 执行方法名称
     */
    private String job_method_name;
    /**
     * 任务描述
     */
    private String description;
    /**
     * 执行类路径
     */
    private String job_class_name;
    /**
     * cron表达式
     */
    private String cron_expression;
    /**
     * 触发器名称
     */
    private String trigger_name;
    /**
     * 任务状态  0停止  1已启动
     */
    private Integer trigger_status;
    /**
     * 创建任务时间
     */
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date create_time;
    /**
     * 修改任务时间
     */
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date update_time;

    public String getJob_name() {
        return job_name;
    }

    public void setJob_name(String job_name) {
        this.job_name = job_name;
    }

    public String getJob_group() {
        return job_group;
    }

    public void setJob_group(String job_group) {
        this.job_group = job_group;
    }

    public String getJob_method_name() {
        return job_method_name;
    }

    public void setJob_method_name(String job_method_name) {
        this.job_method_name = job_method_name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getJob_class_name() {
        return job_class_name;
    }

    public void setJob_class_name(String job_class_name) {
        this.job_class_name = job_class_name;
    }

    public String getCron_expression() {
        return cron_expression;
    }

    public void setCron_expression(String cron_expression) {
        this.cron_expression = cron_expression;
    }

    public String getTrigger_name() {
        return trigger_name;
    }

    public void setTrigger_name(String trigger_name) {
        this.trigger_name = trigger_name;
    }

    public Integer getTrigger_status() {
        return trigger_status;
    }

    public void setTrigger_status(Integer trigger_status) {
        this.trigger_status = trigger_status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "TbSysCustomQuartz{" +
        ", job_name=" + job_name +
        ", job_group=" + job_group +
        ", job_method_name=" + job_method_name +
        ", description=" + description +
        ", job_class_name=" + job_class_name +
        ", cron_expression=" + cron_expression +
        ", trigger_name=" + trigger_name +
        ", trigger_status=" + trigger_status +
        ", create_time=" + create_time +
        ", update_time=" + update_time +
        "}";
    }

	@Override
	public Serializable pkVal() {
		// TODO Auto-generated method stub
		return this.job_name+"_"+this.job_group;
	}
}
